<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>首页</h1>
    <h3>当前用户：</h3>

    <script src="./Scripts/jquery-3.7.0.min.js"></script>
    <script>
        $(function(){
            $.ajax({
                url:'http://localhost:57010/api/user',
                headers:{
                    Authorization:localStorage.getItem('user')
                },
                success:function(res){
                    if (res.Success){
                        console.log(res.Data);
                    }
                }
            })
        })

    </script>
</body>
</html>